package com.bestcem.xm.label.service.dto;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * service 层分页通用返回结果
 *
 * @Author yf.wang <yf.wang@idiaoyan.com>
 * @Date 2021/5/19
 * @Version V1.0
 */
@AllArgsConstructor
@Getter
@Setter
public class PageResultDTO<T> {
    /**
     * 分页数据
     */
    private List<T> data;
    /**
     * 记录总数
     */
    private Long total;

    public PageResultDTO() {
        this.data = new ArrayList<>();
        this.total = 0L;
    }
}
